﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 蒙牛客户加字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "MengNiuEmphasis",
                table: "TCustomers",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "MengNiuStatus",
                table: "TCustomers",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "Postcode",
                table: "TCustomers",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Shortname",
                table: "TCustomers",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MengNiuEmphasis",
                table: "TCustomers");

            migrationBuilder.DropColumn(
                name: "MengNiuStatus",
                table: "TCustomers");

            migrationBuilder.DropColumn(
                name: "Postcode",
                table: "TCustomers");

            migrationBuilder.DropColumn(
                name: "Shortname",
                table: "TCustomers");
        }
    }
}
